package com.molyfun.parents.activity.classroom;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by william(liuchao.hit@gmail.com).
 * Date:2018/5/31.
 */
public class TeamUser implements Parcelable {


    /**
     * username : molyfun
     * userid : 8a2d9263540d4e2f01540d779f5c010f
     * usertype : 2
     * headimgurl : http://media.molyfun.com/mf/teacher/pics/ic_2058-102527968.jpg?sign=29161168bca9ab76fbfca805e141ad12&t=5b1038e4
     * studentname :
     */

    private String username;
    private String userid;
    private String usertype;
    private String headimgurl;
    private String studentname;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getUsertype() {
        return usertype;
    }

    public void setUsertype(String usertype) {
        this.usertype = usertype;
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }

    public String getStudentname() {
        return studentname;
    }

    public void setStudentname(String studentname) {
        this.studentname = studentname;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.username);
        dest.writeString(this.userid);
        dest.writeString(this.usertype);
        dest.writeString(this.headimgurl);
        dest.writeString(this.studentname);
    }

    public TeamUser() {
    }

    protected TeamUser(Parcel in) {
        this.username = in.readString();
        this.userid = in.readString();
        this.usertype = in.readString();
        this.headimgurl = in.readString();
        this.studentname = in.readString();
    }

    public static final Parcelable.Creator<TeamUser> CREATOR = new Parcelable.Creator<TeamUser>() {
        @Override
        public TeamUser createFromParcel(Parcel source) {
            return new TeamUser(source);
        }

        @Override
        public TeamUser[] newArray(int size) {
            return new TeamUser[size];
        }
    };
}
